<table class=grid-table>
	<thead>
		<tr>
			<th>Id</th>
			<th>Nombres</th>
			<th>Apellidos</th>
			<th>Documento</th>
			<th>Mail</th>
			<th>Barrio</th>
			<th>Direccion</th>
			<th>Celular</th>
			<th>Estado</th>
			<th></th>
			<th></th>
		</tr>
	</thead>
	<tbody>		
		<?php foreach($lista_tecnicos as $lista_t):?>
			<tr>
				<td><?php echo $lista_t['id'];?></td>
				<td><?php echo $lista_t['nombres'];?></td>
				<td><?php echo $lista_t['apellidos'];?></td>
				<td><?php echo $lista_t['documento'];?></td>
				<td><?php echo $lista_t['email'];?></td>
				<td><?php echo $lista_t['barrio'];?></td>
				<td><?php echo $lista_t['direccion'];?></td>
				<td><?php echo $lista_t['celular'];?></td>
				<td><?php if($lista_t['activo']=='1') echo "Activo"; else echo "Bloqueado"?></td>
				<td>
				
				<a class="button-image" href="<?php echo site_url(array('tecnico', 'activo', $lista_t['id']));?>">
				<img title="Activar" alt="Activar" src="<?php echo site_url(array('web', 'img', 'icon-check.png'));?>"/>
				</a>
				</td>
				<td>
					<a class="button-image" href="<?php echo site_url(array('tecnico','desactivo', $lista_t['id']));?>">
						<img title="Desactivar" alt="Desactivar" src="<?php echo site_url(array('web', 'img', 'icon-cross.png'));?>"/>
					</a>
				</td>
			</tr>
		<?php endforeach;?>
	</tbody>
</table>

<table class="buttons-table">
	<tr>
		<td>
			<a class="button-image" href="<?php echo site_url(array('tecnico','redireccionarNuevoTecnico'));?>">
				<img title="Nuevo tecnico" alt="Nuevo tecnico" src="<?php echo site_url(array('web', 'img', 'icon-new.png'));?>"/>
   	   			<label>Nuevo tecnico</label>
			</a>
		</td>
	</tr>
</table>

